package com.eascs.web.o2o.mq.entity;


import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 银行交易接口日志表Entity
 * @author user
 *
 */
@Entity
@Table(name = "o2o_bank_trans_log")
public class LogEntity implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6564946487102535541L;
	
	/**
	 * 处理结果：0-成功，1-失败
	 */
	public static final int RESULT_TYPE_SUCCESS = 0;
	
	public static final int RESULT_TYPE_ERROR = 1;
	/**
	 * 银行类型：BC-中行
	 */
	public static final String BANK_TYPE_BOC = "BC";

	@Id
	@Column(name = "log_id")
	private String logId;
	
	/**申请编号*/
	@Column(name = "app_no")
	private String appNo;
	/**业务数据编号*/
	@Column(name = "loanapply_no")
	private String loanapplyNo;
	/**贷款编号*/
	@Column(name = "bill_code")
	private String billCode;
	/**银行类型：BOC-中行*/
	@Column(name = "bank_type")
	private String bankType;
	/**接口名称*/
	@Column(name = "trans_type")
	private String transType;
	/**接口名称*/
	@Column(name = "type_name")
	private String typeName;
	/**处理结果:0-成功，1-失败*/
	@Column(name = "result_type")
	private int resultType;
	/**日志信息*/
	@Column(name = "result_desc")
	private String resultDesc;
	/**交易开始时间*/
	@Column(name = "start_time")
	private Date startTime;
	/**交易结束时间*/
	@Column(name = "end_time")
	private Date endTime;
	
	@Column(name = "customer_id")
	private String customerId;

	public String getLogId() {
		return logId;
	}

	public void setLogId(String logId) {
		this.logId = logId;
	}

	public String getAppNo() {
		return appNo;
	}

	public void setAppNo(String appNo) {
		this.appNo = appNo;
	}

	public String getLoanapplyNo() {
		return loanapplyNo;
	}

	public void setLoanapplyNo(String loanapplyNo) {
		this.loanapplyNo = loanapplyNo;
	}
	
	public String getBillCode() {
		return billCode;
	}

	public void setBillCode(String billCode) {
		this.billCode = billCode;
	}

	public String getBankType() {
		return bankType;
	}

	public void setBankType(String bankType) {
		this.bankType = bankType;
	}

	public String getTransType() {
		return transType;
	}

	public void setTransType(String transType) {
		this.transType = transType;
	}

	public int getResultType() {
		return resultType;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public void setResultType(int resultType) {
		this.resultType = resultType;
	}

	public String getResultDesc() {
		return resultDesc;
	}

	public void setResultDesc(String resultDesc) {
		this.resultDesc = resultDesc;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	@Override
	public String toString() {
		return "LogEntity [logId=" + logId + ", appNo=" + appNo + ", loanapplyNo=" + loanapplyNo + ", bankType="
				+ bankType + ", transType=" + transType + ", resultType=" + resultType + ", resultDesc=" + resultDesc
				+ ", startTime=" + startTime + ", endTime=" + endTime + "]";
	}
	
	
}
